package game;

// 战士Soldier子类
public class Soldier extends Role {
    private int attackPower;

    public Soldier(String name, int attackPower) {
        super(name);
        this.attackPower = attackPower;
    }

    @Override
    public int attack() {
        return attackPower;
    }
}